public class Animal
{
    String name;
    double weight;
    String eat="吃饭";
    String sleep="睡觉";
    public Animal(String name,double weight)
    {
        this.name=name;
        this.weight=weight;
    }
    public Animal()
    {

    }

}
